package com.cattest.cattest.service.impl;

import com.cattest.cattest.dao.UserMapper;
import com.cattest.cattest.entity.UserEntity;
import com.cattest.cattest.service.UserService;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * @Author linlx
 * @Date 2021/8/21 16:48
 * @Description
 **/
@Service
public class UserServiceImpl implements UserService {

  @Resource
  private UserMapper userMapper;

  @Override
  public UserEntity selectById(int id) {
    return userMapper.selectById(id);
  }

  @Override
  public void updateById(int id, String realName) {
    userMapper.updateById(id, realName);
  }

  @Override
  public void deleteById(int id) {
    userMapper.deleteById(id);
  }

  @Override
  public void save(String userName, String passWord, String realName) {
    userMapper.save(userName, passWord, realName);
  }
}
